//Move a new entity into this slot


    public override void moveEntity(SlotEntity entity_in)
    {
        if (entity_in is SingularEntity && entity_in != entity)
        {
            //Bump off last entity
            if (entity != null)
            {
                entity.Bump(entity_in.container);
            }

            //Set new entity
            entity_in.container = this;
            entity = (SingularEntity)entity_in;
        }
        else
        {
            minorEntities.Add(entity_in);
            entity_in.container = this;
        }

        entity_in.side = friendly;
    }
Пример #2
0
 public void SetValue(SingularEntity value)
 {
     // Don't do anything, cuz it's mocked out! :)
 }
Пример #3
0
 public void SetValue(SingularEntity value)
 {
     throw new System.Exception("This should only be hit by domain code, but the current demo only shows if this is hit during Unit Tests, which is a no-no");
 }