forked from Mirrors/openclonk
add descriptions to liquid objects
parent
e1413a941d
commit
e004006fdc
|
@ -1,11 +1,23 @@
|
|||
/**
|
||||
Acid
|
||||
Represents a single material pixel of acid.
|
||||
|
||||
@author Marky
|
||||
*/
|
||||
|
||||
#include Library_Liquid
|
||||
|
||||
func GetLiquidType() { return "Acid"; }
|
||||
|
||||
func Disperse(int angle, int strength)
|
||||
public func GetLiquidType() { return "Acid"; }
|
||||
|
||||
public func Disperse(int angle, int strength)
|
||||
{
|
||||
DisperseMaterial(GetLiquidType(), GetLiquidAmount(), strength, angle);
|
||||
_inherited(...);
|
||||
}
|
||||
|
||||
local Name="$Name$";
|
||||
|
||||
/*-- Properties --*/
|
||||
|
||||
local Name = "$Name$";
|
||||
local Description = "$Description$";
|
|
@ -1 +1,2 @@
|
|||
Name=Säure
|
||||
Name=Säure
|
||||
Description=Stellt ein Material-Pixel Säure dar.
|
|
@ -1 +1,2 @@
|
|||
Name=Acid
|
||||
Name=Acid
|
||||
Description=Represents a single material pixel of acid.
|
|
@ -1,11 +1,23 @@
|
|||
/**
|
||||
Lava
|
||||
Represents a single material pixel of lava.
|
||||
|
||||
@author Marky
|
||||
*/
|
||||
|
||||
#include Library_Liquid
|
||||
|
||||
func GetLiquidType() { return "Lava"; }
|
||||
|
||||
func Disperse(int angle, int strength)
|
||||
public func GetLiquidType() { return "Lava"; }
|
||||
|
||||
public func Disperse(int angle, int strength)
|
||||
{
|
||||
DisperseMaterial(GetLiquidType(), GetLiquidAmount(), strength, angle);
|
||||
_inherited(...);
|
||||
}
|
||||
|
||||
local Name="$Name$";
|
||||
|
||||
/*-- Properties --*/
|
||||
|
||||
local Name = "$Name$";
|
||||
local Description = "$Description$";
|
|
@ -1 +1,2 @@
|
|||
Name=Lava
|
||||
Name=Lava
|
||||
Description=Stellt ein Material-Pixel Lava dar.
|
|
@ -1 +1,2 @@
|
|||
Name=Lava
|
||||
Name=Lava
|
||||
Description=Represents a single material pixel of lava.
|
|
@ -1,24 +1,37 @@
|
|||
/**
|
||||
Oil
|
||||
Represents a single material pixel of oil.
|
||||
|
||||
@author Marky
|
||||
*/
|
||||
|
||||
#include Library_Liquid
|
||||
|
||||
func GetLiquidType() { return "Oil"; }
|
||||
|
||||
func Disperse(int angle, int strength)
|
||||
public func GetLiquidType() { return "Oil"; }
|
||||
|
||||
public func Disperse(int angle, int strength)
|
||||
{
|
||||
DisperseMaterial(GetLiquidType(), GetLiquidAmount(), strength, angle);
|
||||
_inherited(...);
|
||||
}
|
||||
|
||||
func IsFuel(){ return true;}
|
||||
func GetFuelAmount(int requested_amount)
|
||||
public func IsFuel() { return true; }
|
||||
|
||||
public func GetFuelAmount(int requested_amount)
|
||||
{
|
||||
requested_amount = requested_amount ?? GetLiquidAmount();
|
||||
return Min(requested_amount, GetLiquidAmount());
|
||||
}
|
||||
|
||||
func OnFuelRemoved(int amount)
|
||||
public func OnFuelRemoved(int amount)
|
||||
{
|
||||
DoStackCount(-amount);
|
||||
return true;
|
||||
}
|
||||
|
||||
local Name="$Name$";
|
||||
|
||||
/*-- Properties --*/
|
||||
|
||||
local Name = "$Name$";
|
||||
local Description = "$Description$";
|
|
@ -1 +1,2 @@
|
|||
Name=Öl
|
||||
Name=Öl
|
||||
Description=Stellt ein Material-Pixel Öl dar.
|
|
@ -1 +1,2 @@
|
|||
Name=Oil
|
||||
Name=Oil
|
||||
Description=Represents a single material pixel of oil.
|
|
@ -1,11 +1,23 @@
|
|||
/**
|
||||
Water
|
||||
Represents a single material pixel of water.
|
||||
|
||||
@author Marky
|
||||
*/
|
||||
|
||||
#include Library_Liquid
|
||||
|
||||
func GetLiquidType() { return "Water"; }
|
||||
|
||||
func Disperse(int angle, int strength)
|
||||
public func GetLiquidType() { return "Water"; }
|
||||
|
||||
public func Disperse(int angle, int strength)
|
||||
{
|
||||
DisperseMaterial(GetLiquidType(), GetLiquidAmount(), strength, angle);
|
||||
_inherited(...);
|
||||
}
|
||||
|
||||
local Name="$Name$";
|
||||
|
||||
/*-- Properties --*/
|
||||
|
||||
local Name = "$Name$";
|
||||
local Description = "$Description$";
|
|
@ -1 +1,2 @@
|
|||
Name=Wasser
|
||||
Name=Wasser
|
||||
Description=Stellt ein Material-Pixel Wasser dar.
|
|
@ -1 +1,2 @@
|
|||
Name=Water
|
||||
Name=Water
|
||||
Description=Represents a single material pixel of water.
|
Loading…
Reference in New Issue