Adds IThrown, ILand interfaces. Adds dice. (#273)
* Dice, IThrown, ILand * Adds sounds to the dice using a sound collection. * Seed random instance better. * Missed a ")", should compile now
This commit is contained in:
committed by
Pieter-Jan Briers
parent
92668432a7
commit
d9077bde74
@@ -10,6 +10,8 @@ namespace Content.Server.GameObjects.EntitySystems
|
||||
bool CanInteract();
|
||||
|
||||
bool CanUse();
|
||||
|
||||
bool CanThrow();
|
||||
}
|
||||
|
||||
public class ActionBlockerSystem : EntitySystem
|
||||
@@ -43,5 +45,15 @@ namespace Content.Server.GameObjects.EntitySystems
|
||||
}
|
||||
return canuse;
|
||||
}
|
||||
|
||||
public static bool CanThrow(IEntity entity)
|
||||
{
|
||||
bool canthrow = true;
|
||||
foreach (var actionblockercomponents in entity.GetAllComponents<IActionBlocker>())
|
||||
{
|
||||
canthrow &= actionblockercomponents.CanThrow();
|
||||
}
|
||||
return canthrow;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user