コード例 #1
0
 public bool CanAttach(OverlapWorld world, MapSiteDef site, HierarchyTransform t)
 {
     if (Size < site.AttachmentSize)
     {
         return(false);
     }
     var localT       = new HierarchyTransform(Pos, Rot, t);
     var attachmentrT = new HierarchyTransform(default, site.AttachmentRotation, localT);
コード例 #2
0
 public MapSiteInstance(MapSiteDef def, Vec2 pos, float rot, bool attachedToBottom)
 {
     Def              = def;
     World            = new OverlapWorld(def.SizeX, def.SizeY);
     Pos              = pos;
     Rot              = rot;
     AttachedToBottom = attachedToBottom;
 }