Example #1
0
        public LegacyBridgeHut(ActorInitializer init, LegacyBridgeHutInfo info)
        {
            var bridge = init.Get <ParentActorInit>().Value;

            init.World.AddFrameEndTask(_ =>
            {
                Bridge = bridge.Actor(init.World).Value.Trait <Bridge>();
                Bridge.AddHut(this);
                FirstBridge = Bridge.Enumerate(0, true).Last();
            });
        }
Example #2
0
 public LegacyBridgeHut(ActorInitializer init)
 {
     Bridge = init.Get <ParentActorInit>().ActorValue.Trait <Bridge>();
     Bridge.AddHut(this);
     FirstBridge = Bridge.Enumerate(0, true).Last();
 }