Exemplo n.º 1
0
        public static void AddCountry(SnapshotBuilder snapshot, Coordinates coordinates)
        {
            var entityId = snapshot.GenerateId();
            var entity   = EntityTemplateFactory.CreateCountryTemplate(coordinates);

            snapshot.Add(entityId, entity);
        }
Exemplo n.º 2
0
        public static void AddTree(SnapshotBuilder snapshot, Coordinates position)
        {
            var treeEntityId  = snapshot.GenerateId();
            var spawnRotation = (uint)Mathf.CeilToInt((float)rand.NextDouble() * 360.0f);
            var entity        = EntityTemplateFactory.CreateCountryTemplate(position);

            snapshot.Add(treeEntityId, entity);
        }