Example #1
0
 private FrozenObject(IEditorPlaceable actual, QuickGameScene scene)
 {
     ActualObject = actual;
     scene.SolidLayer.AddObject(this);
     ActualObject.Remove();
     Scene = scene;
 }
Example #2
0
        public static FrozenObject Create(IEditorPlaceable actual, QuickGameScene scene)
        {
            if (actual.IsRemoved)
            {
                return(null);
            }

            return((actual as FrozenObject) ?? new FrozenObject(actual, scene));
        }
Example #3
0
 public ObjectStartInfo(IEditorPlaceable obj)
 {
     X = obj.Position.Center.X;
     Y = obj.Position.Center.Y;
 }