File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed
engine/src/main/java/org/destinationsol/components Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright 2020 The Terasology Foundation
3+ *
4+ * Licensed under the Apache License, Version 2.0 (the "License");
5+ * you may not use this file except in compliance with the License.
6+ * You may obtain a copy of the License at
7+ *
8+ * http://www.apache.org/licenses/LICENSE-2.0
9+ *
10+ * Unless required by applicable law or agreed to in writing, software
11+ * distributed under the License is distributed on an "AS IS" BASIS,
12+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+ * See the License for the specific language governing permissions and
14+ * limitations under the License.
15+ */
16+ package org .destinationsol .components ;
17+
18+ import org .terasology .gestalt .entitysystem .component .Component ;
19+
20+ /**
21+ * Stasis components are a way to flag a component to indicate that it should be handled in a more resource-efficient
22+ * way. Generally speaking, every entity that gets too far away from a player either gets a stasis component or is
23+ * deleted. Entities in stasis remain that way until a player gets close to them again, at which point the stasis
24+ * component is removed.
25+ *
26+ * For systems that shouldn't operate on an entity in stasis, there should be a method annotated with "@Before" that
27+ * consumes that event if the entity has a stasis component.
28+ */
29+ public class Stasis implements Component <Stasis > {
30+
31+ @ Override
32+ public void copy (Stasis other ) {
33+ }
34+ }
You can’t perform that action at this time.
0 commit comments