mirror of
https://github.com/illiumst/marl-factory-grid.git
synced 2025-05-22 14:56:43 +02:00
25 lines
583 B
Python
25 lines
583 B
Python
from typing import List
|
|
from mfg_package.environment.rules import Rule
|
|
from mfg_package.utils.results import TickResult, DoneResult
|
|
|
|
|
|
class TemplateRule(Rule):
|
|
|
|
def __init__(self, *args, **kwargs):
|
|
super(TemplateRule, self).__init__(*args, **kwargs)
|
|
|
|
def on_init(self, state):
|
|
pass
|
|
|
|
def tick_pre_step(self, state) -> List[TickResult]:
|
|
pass
|
|
|
|
def tick_step(self, state) -> List[TickResult]:
|
|
pass
|
|
|
|
def tick_post_step(self, state) -> List[TickResult]:
|
|
pass
|
|
|
|
def on_check_done(self, state) -> List[DoneResult]:
|
|
pass
|