예제 #1
0
 public GameObject GetEntityConnector(GameObject aliasObject, EntityData entityData, EntityData connectedEntity)
 {
     throw new NotImplementedException();
 }
예제 #2
0
 public virtual bool HasPendingIssues(GameObject aliasObject, EntityData entityData, EntityData bearingSurfaceEntity, EntityData collidingEntity)
 {
     return(entityData == null || bearingSurfaceEntity == null || (bearingSurfaceEntity != null && !IsStatic(bearingSurfaceEntity)) || (collidingEntity != null && !IsStatic(collidingEntity)));
 }
예제 #3
0
 public EntityData GetCloserConnectableEntity(GameObject aliasObject, EntityData entityData)
 {
     throw new NotImplementedException();
 }
예제 #4
0
 public virtual bool IsValid(GameObject aliasObject, EntityData entityData, EntityData bearingSurfaceEntity, EntityData collidingEntity, CollisionState collisionState)
 {
     if (!CanBeLeantAgainst(entityData, bearingSurfaceEntity) ||
         !CanCollideWith(entityData, bearingSurfaceEntity, collidingEntity, collisionState))
     {
         return(false);
     }
     // other tests...
     return(true);
 }
예제 #5
0
 public virtual bool CanCollideWith(EntityData entityData, EntityData bearingSurfaceEntity, EntityData collidingEntity, CollisionState collisionState)
 {
     return(!collisionState.IsColliding || collidingEntity == bearingSurfaceEntity);
 }
예제 #6
0
 public virtual bool CanBeLeantAgainst(EntityData entityData, EntityData bearingSurfaceEntity)
 {
     return(entityData != null && ((bearingSurfaceEntity != null && IsStatic(bearingSurfaceEntity)) || bearingSurfaceEntity == null));
 }
예제 #7
0
 public virtual bool CanBeSelected(EntityData entityData)
 {
     return(entityData != null && !IsStatic(entityData));
 }
예제 #8
0
 public virtual bool IsStatic(EntityData entityData)
 {
     return(entityData != null && (entityData.type == "Building" || entityData.isStatic));
 }